package com.leesche.zcsp.node.web.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PubDevGiftStockCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PubDevGiftStockCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGiftidIsNull() {
            addCriterion("giftId is null");
            return (Criteria) this;
        }

        public Criteria andGiftidIsNotNull() {
            addCriterion("giftId is not null");
            return (Criteria) this;
        }

        public Criteria andGiftidEqualTo(Long value) {
            addCriterion("giftId =", value, "giftid");
            return (Criteria) this;
        }

        public Criteria andGiftidNotEqualTo(Long value) {
            addCriterion("giftId <>", value, "giftid");
            return (Criteria) this;
        }

        public Criteria andGiftidGreaterThan(Long value) {
            addCriterion("giftId >", value, "giftid");
            return (Criteria) this;
        }

        public Criteria andGiftidGreaterThanOrEqualTo(Long value) {
            addCriterion("giftId >=", value, "giftid");
            return (Criteria) this;
        }

        public Criteria andGiftidLessThan(Long value) {
            addCriterion("giftId <", value, "giftid");
            return (Criteria) this;
        }

        public Criteria andGiftidLessThanOrEqualTo(Long value) {
            addCriterion("giftId <=", value, "giftid");
            return (Criteria) this;
        }

        public Criteria andGiftidIn(List<Long> values) {
            addCriterion("giftId in", values, "giftid");
            return (Criteria) this;
        }

        public Criteria andGiftidNotIn(List<Long> values) {
            addCriterion("giftId not in", values, "giftid");
            return (Criteria) this;
        }

        public Criteria andGiftidBetween(Long value1, Long value2) {
            addCriterion("giftId between", value1, value2, "giftid");
            return (Criteria) this;
        }

        public Criteria andGiftidNotBetween(Long value1, Long value2) {
            addCriterion("giftId not between", value1, value2, "giftid");
            return (Criteria) this;
        }

        public Criteria andDeviceidIsNull() {
            addCriterion("DeviceID is null");
            return (Criteria) this;
        }

        public Criteria andDeviceidIsNotNull() {
            addCriterion("DeviceID is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceidEqualTo(Long value) {
            addCriterion("DeviceID =", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidNotEqualTo(Long value) {
            addCriterion("DeviceID <>", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidGreaterThan(Long value) {
            addCriterion("DeviceID >", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidGreaterThanOrEqualTo(Long value) {
            addCriterion("DeviceID >=", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidLessThan(Long value) {
            addCriterion("DeviceID <", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidLessThanOrEqualTo(Long value) {
            addCriterion("DeviceID <=", value, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidIn(List<Long> values) {
            addCriterion("DeviceID in", values, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidNotIn(List<Long> values) {
            addCriterion("DeviceID not in", values, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidBetween(Long value1, Long value2) {
            addCriterion("DeviceID between", value1, value2, "deviceid");
            return (Criteria) this;
        }

        public Criteria andDeviceidNotBetween(Long value1, Long value2) {
            addCriterion("DeviceID not between", value1, value2, "deviceid");
            return (Criteria) this;
        }

        public Criteria andGiftnameIsNull() {
            addCriterion("giftName is null");
            return (Criteria) this;
        }

        public Criteria andGiftnameIsNotNull() {
            addCriterion("giftName is not null");
            return (Criteria) this;
        }

        public Criteria andGiftnameEqualTo(String value) {
            addCriterion("giftName =", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameNotEqualTo(String value) {
            addCriterion("giftName <>", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameGreaterThan(String value) {
            addCriterion("giftName >", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameGreaterThanOrEqualTo(String value) {
            addCriterion("giftName >=", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameLessThan(String value) {
            addCriterion("giftName <", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameLessThanOrEqualTo(String value) {
            addCriterion("giftName <=", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameLike(String value) {
            addCriterion("giftName like", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameNotLike(String value) {
            addCriterion("giftName not like", value, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameIn(List<String> values) {
            addCriterion("giftName in", values, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameNotIn(List<String> values) {
            addCriterion("giftName not in", values, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameBetween(String value1, String value2) {
            addCriterion("giftName between", value1, value2, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftnameNotBetween(String value1, String value2) {
            addCriterion("giftName not between", value1, value2, "giftname");
            return (Criteria) this;
        }

        public Criteria andGiftqtyIsNull() {
            addCriterion("giftQty is null");
            return (Criteria) this;
        }

        public Criteria andGiftqtyIsNotNull() {
            addCriterion("giftQty is not null");
            return (Criteria) this;
        }

        public Criteria andGiftqtyEqualTo(Integer value) {
            addCriterion("giftQty =", value, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftqtyNotEqualTo(Integer value) {
            addCriterion("giftQty <>", value, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftqtyGreaterThan(Integer value) {
            addCriterion("giftQty >", value, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftqtyGreaterThanOrEqualTo(Integer value) {
            addCriterion("giftQty >=", value, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftqtyLessThan(Integer value) {
            addCriterion("giftQty <", value, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftqtyLessThanOrEqualTo(Integer value) {
            addCriterion("giftQty <=", value, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftqtyIn(List<Integer> values) {
            addCriterion("giftQty in", values, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftqtyNotIn(List<Integer> values) {
            addCriterion("giftQty not in", values, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftqtyBetween(Integer value1, Integer value2) {
            addCriterion("giftQty between", value1, value2, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftqtyNotBetween(Integer value1, Integer value2) {
            addCriterion("giftQty not between", value1, value2, "giftqty");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlIsNull() {
            addCriterion("giftImgUrl is null");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlIsNotNull() {
            addCriterion("giftImgUrl is not null");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlEqualTo(String value) {
            addCriterion("giftImgUrl =", value, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlNotEqualTo(String value) {
            addCriterion("giftImgUrl <>", value, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlGreaterThan(String value) {
            addCriterion("giftImgUrl >", value, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlGreaterThanOrEqualTo(String value) {
            addCriterion("giftImgUrl >=", value, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlLessThan(String value) {
            addCriterion("giftImgUrl <", value, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlLessThanOrEqualTo(String value) {
            addCriterion("giftImgUrl <=", value, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlLike(String value) {
            addCriterion("giftImgUrl like", value, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlNotLike(String value) {
            addCriterion("giftImgUrl not like", value, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlIn(List<String> values) {
            addCriterion("giftImgUrl in", values, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlNotIn(List<String> values) {
            addCriterion("giftImgUrl not in", values, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlBetween(String value1, String value2) {
            addCriterion("giftImgUrl between", value1, value2, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andGiftimgurlNotBetween(String value1, String value2) {
            addCriterion("giftImgUrl not between", value1, value2, "giftimgurl");
            return (Criteria) this;
        }

        public Criteria andIntdata1IsNull() {
            addCriterion("intData1 is null");
            return (Criteria) this;
        }

        public Criteria andIntdata1IsNotNull() {
            addCriterion("intData1 is not null");
            return (Criteria) this;
        }

        public Criteria andIntdata1EqualTo(Integer value) {
            addCriterion("intData1 =", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1NotEqualTo(Integer value) {
            addCriterion("intData1 <>", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1GreaterThan(Integer value) {
            addCriterion("intData1 >", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1GreaterThanOrEqualTo(Integer value) {
            addCriterion("intData1 >=", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1LessThan(Integer value) {
            addCriterion("intData1 <", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1LessThanOrEqualTo(Integer value) {
            addCriterion("intData1 <=", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1In(List<Integer> values) {
            addCriterion("intData1 in", values, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1NotIn(List<Integer> values) {
            addCriterion("intData1 not in", values, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1Between(Integer value1, Integer value2) {
            addCriterion("intData1 between", value1, value2, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1NotBetween(Integer value1, Integer value2) {
            addCriterion("intData1 not between", value1, value2, "intdata1");
            return (Criteria) this;
        }

        public Criteria andSdata2IsNull() {
            addCriterion("sData2 is null");
            return (Criteria) this;
        }

        public Criteria andSdata2IsNotNull() {
            addCriterion("sData2 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata2EqualTo(String value) {
            addCriterion("sData2 =", value, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2NotEqualTo(String value) {
            addCriterion("sData2 <>", value, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2GreaterThan(String value) {
            addCriterion("sData2 >", value, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2GreaterThanOrEqualTo(String value) {
            addCriterion("sData2 >=", value, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2LessThan(String value) {
            addCriterion("sData2 <", value, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2LessThanOrEqualTo(String value) {
            addCriterion("sData2 <=", value, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2Like(String value) {
            addCriterion("sData2 like", value, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2NotLike(String value) {
            addCriterion("sData2 not like", value, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2In(List<String> values) {
            addCriterion("sData2 in", values, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2NotIn(List<String> values) {
            addCriterion("sData2 not in", values, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2Between(String value1, String value2) {
            addCriterion("sData2 between", value1, value2, "sdata2");
            return (Criteria) this;
        }

        public Criteria andSdata2NotBetween(String value1, String value2) {
            addCriterion("sData2 not between", value1, value2, "sdata2");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNull() {
            addCriterion("AdminID is null");
            return (Criteria) this;
        }

        public Criteria andAdminidIsNotNull() {
            addCriterion("AdminID is not null");
            return (Criteria) this;
        }

        public Criteria andAdminidEqualTo(Long value) {
            addCriterion("AdminID =", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotEqualTo(Long value) {
            addCriterion("AdminID <>", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThan(Long value) {
            addCriterion("AdminID >", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidGreaterThanOrEqualTo(Long value) {
            addCriterion("AdminID >=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThan(Long value) {
            addCriterion("AdminID <", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidLessThanOrEqualTo(Long value) {
            addCriterion("AdminID <=", value, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidIn(List<Long> values) {
            addCriterion("AdminID in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotIn(List<Long> values) {
            addCriterion("AdminID not in", values, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidBetween(Long value1, Long value2) {
            addCriterion("AdminID between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andAdminidNotBetween(Long value1, Long value2) {
            addCriterion("AdminID not between", value1, value2, "adminid");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}